package com.educate.serviceedu.controller;


import com.educate.commonutils.ResultOne;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin//解决跨域问题
public class EduLoginController {
    @PostMapping("login")
    public ResultOne login(){
        return ResultOne.ok().data("token","admin");
    }
    @GetMapping("info")
    public ResultOne info(){
        return ResultOne.ok().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }

}
